Adds new attributes to a record, or updates existing ones.
createIfNotExists
is true.To update an attribute without pushing the entire record, you can use these built-in operations. These operations can be helpful if you don’t have access to your initial data.
You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties:
This operation is subject to indexing rate limits.
Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Name of the index on which to perform the operation.
"ALGOLIA_INDEX_NAME"
Unique record identifier.
"test-record-123"
Whether to create a new record if it doesn't exist.
Attributes with their values.
Attributes to update.
OK
Response, taskID, unique object identifier, and an update timestamp.